<?php

namespace Admin\Model;

use Think\Model\ViewModel;

class ScenicModel extends ViewModel {
	public $viewFields = array(
			'Scenic'    =>array('id','name','address','image'),
			'City'=>array('city', '_on'=>'Scenic.city=City.id','_type'=>'LEFT'),
			'Province'=>array('province', '_on'=>'City.province_id=Province.id','_type'=>'LEFT'),
	);
}